package org.ionyx.client.main;

import net.minecraft.client.Minecraft;

import org.darkstorm.minecraft.gui.GuiManagerImpl;
import org.darkstorm.minecraft.gui.theme.simple.SimpleTheme;
import org.darkstorm.minecraft.gui.util.GuiManagerDisplayScreen;
import org.ionyx.client.gui.GuiIngameHook;

public class Plexianth {
	
	private static Plexianth plex = new Plexianth();
	
	
	
	public static Plexianth getInstance(){
		return plex;
	}
	
	public void initPlex(){
	
		Minecraft.getMinecraft().ingameGUI = new GuiIngameHook(Minecraft.getMinecraft());
		
	}
	
	public String getPlexName(){
		return "Plexianth";
	}
	
	private GuiManagerDisplayScreen gui;
	private GuiManagerImpl guiManager;
	
	public GuiManagerImpl getGuiManager(){
		if(guiManager == null){
			guiManager = new GuiManagerImpl();
			guiManager.setTheme(new SimpleTheme());
			guiManager.setup();
		}
		return guiManager;
	}
	
	public GuiManagerDisplayScreen getGui(){
		if(gui == null){
			gui = new GuiManagerDisplayScreen(getGuiManager());
		}
			return gui;
	}
	
	
	
}
